package info.ggit;
import info.ggit.FlyBehavior;
import info.ggit.QuackBehavior;

public abstract class Duck {
	
	FlyBehavior flyBehavior;
	QuackBehavior quackBehavior;
	
	public Duck(){
		
	}
	
	public abstract void display();
	
	public void perfromFly(){
		flyBehavior.fly();	
	}
	
	public void perfromQucak(){
		quackBehavior.quack();
	}
	
	public void swim(){
		System.out.println("All ducks float.even decoys");
	}
}
